<?php


namespace App\Models;


class GoodsSpu extends BaseModel
{

    public function sku()
    {
        return $this->hasMany(GoodsSku::class, 'spu_id', 'id');
    }

    public function getCommodityImageAttribute($value)
    {
        return json_decode($value);
    }

}